package com.dingreading.cloud.web.service.impl;

import com.dingreading.cloud.web.entity.table.StudyVideoExpireTableDef;
import com.dingreading.cloud.web.entity.StudyVideoExpire;
import com.dingreading.cloud.web.mapper.StudyVideoExpireMapper;
import com.dingreading.cloud.web.service.StudyVideoExpireService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2025-09-18
 */
@Service
public class StudyVideoExpireServiceImpl extends BaseServiceImpl<StudyVideoExpireMapper, StudyVideoExpire, StudyVideoExpireTableDef> implements StudyVideoExpireService {

    @Override
    protected StudyVideoExpireTableDef getTable() {
        return StudyVideoExpireTableDef.studyVideoExpire;
    }

    @Override
    public StudyVideoExpire getByUid(String uid) {
        return getMapper().selectOneByCondition(table.uid.eq(uid));
    }
}
